package com.ruoyi.exam.mapper;

import com.ruoyi.exam.domain.PWrongQuestion;
import com.ruoyi.exam.vo.WrongQuestionResult;

import java.util.List;

/**
 * 错题记录Mapper接口
 *
 * @author jiadun
 * @date 2022-01-10
 */
public interface PWrongQuestionMapper
{
    /**
     * 查询错题记录
     *
     * @param id 错题记录主键
     * @return 错题记录
     */
    public PWrongQuestion selectPWrongQuestionById(Long id);

    /**
     * 查询错题记录列表
     *
     * @param pWrongQuestion 错题记录
     * @return 错题记录集合
     */
    public List<PWrongQuestion> selectPWrongQuestionList(PWrongQuestion pWrongQuestion);

    /**
     * 新增错题记录
     *
     * @param pWrongQuestion 错题记录
     * @return 结果
     */
    public int insertPWrongQuestion(PWrongQuestion pWrongQuestion);

    /**
     * 修改错题记录
     *
     * @param pWrongQuestion 错题记录
     * @return 结果
     */
    public int updatePWrongQuestion(PWrongQuestion pWrongQuestion);

    /**
     * 删除错题记录
     *
     * @param id 错题记录主键
     * @return 结果
     */
    public int deletePWrongQuestionById(Long id);

    /**
     * 批量删除错题记录
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deletePWrongQuestionByIds(Long[] ids);


    public List<WrongQuestionResult>  selectwrongQuestion(PWrongQuestion pWrongQuestion);

  List<WrongQuestionResult> selectwrongQuestionByType(PWrongQuestion pWrongQuestion);
}
